#include<iostream>
#include<algorithm>
#define ll long long
using namespace std;
const int num = 1e5 + 10;
ll n, r[num];
bool n_ex[num], n_fi[num];// be killed, cannot fight 
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    ll res = n;//the rest number
    for(ll i = 1; i <= n ;i++)
        cin >> r[i];
    sort(r + 1, r + n + 1);
    for(ll i = 1; i <= n; i++)//be attacked
    {
        if(n_ex[i]) continue;
        for(ll j = i + 1; j <= n; j++)//attacker
        {
            if(r[j] <= r[i]) continue;
            if(n_fi[j]) continue;
            n_ex[i] = true;
            n_fi[i] = true;
            n_fi[j] = true;
            res--;
            break;
        }
    }
    cout << res;
    return 0;
}